package com.liliudong.pinkyponk.biz.sys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.liliudong.pinkyponk.biz.sys.entity.SysUser;
import com.liliudong.pinkyponk.common.db.annotation.IgnoreDataScope;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;

/**
 * @author liliudong
 * @description 针对表【sys_user(系统用户)】的数据库操作Mapper
 * @dateDate 2022-05-26 15:10:26 @Entity com.liliudong.pinkyponk.biz.sys.entity.SysUser
 */
@Mapper
public interface SysUserMapper extends BaseMapper<SysUser> {

    /**
     * selectById
     *
     * @param id
     * @return
     */
    @Override
    @IgnoreDataScope
    SysUser selectById(Serializable id);

    /**
     * selectByUsername
     *
     * @param username
     * @return
     */
    @IgnoreDataScope
    SysUser selectByUsername(@Param("username") String username);
}
